<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>My JSP 'left.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

	</head>

	<body>
		<table width="120" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td valign="top">
					<table width="220" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td>
								<table width="214" border="0" cellpadding="0" cellspacing="0">
									<!--DWLayoutTable-->
									<c:choose>
										<c:when test="${ empty session.user }">
											<tr>
												<td width="245">
													<img name="index_r5_c2" src="image/page/index_r5_c2.jpg"
														width="245" height="30" border="0" id="index_r5_c2" alt="" />
												</td>
											</tr>
											<tr>
												<td valign="top">
													<table width="219" border="0" cellpadding="0"
														cellspacing="0">
														<tr>
															<td width="12">
																&nbsp;
															</td>
															<td width="172" valign="top">

																<form action="login.action" method="post" name="form2"
																	id="form2">
																	<table width="215" height="81" border="0"
																		align="center" cellpadding="0" cellspacing="0">
																		<tr>
																			<td width="58" height="27" class="c1">
																				<font color="#666666">用户名:</font>
																			</td>
																			<td>
																				<input name="user.username" type="text"
																					id="MemberName" size="12" />
																			</td>
																			<td width="62" rowspan="2" align="center">
																				<input type="image" src="image/page/left7.jpg"
																					width="47" height="44" />
																			</td>
																		</tr>
																		<tr>
																			<td height="27" class="c1">
																				<font color="#666666">密 码:</font>
																			</td>
																			<td width="95">
																				<input name="user.userpass" type="password"
																					id="MemberPwd" style="width: 106px;" />
																			</td>
																		</tr>
																		<tr>
																			<td colspan="2">
																				<table width="150" border="0" cellpadding="0"
																					cellspacing="0">
																					<tr>
																						<td width="7">
																							&nbsp;
																						</td>
																						<td width="53" height="27">
																							<a href="goRegiste.action"><img src="image/page/left8.jpg"
																									width="46" height="21" border="0" /> </a>
																						</td>
																						<td width="90">
																							<a href="#"><img src="image/page/wangji.jpg"
																									width="85" height="23" border="0" /> </a>
																						</td>
																					</tr>
																				</table>
																			</td>
																		</tr>
																	</table>
																</form>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</c:when>
										<c:otherwise>
											<tr>
												<td width="245">
													<img name="index_r5_c2" src="image/page/index_r5_c3.jpg"
														width="245" height="30" border="0" id="index_r5_c2" alt="" />
												</td>
											</tr>
											<tr>
												<td valign="top">
													<table width="219" border="0" cellpadding="0"
														cellspacing="0">
														<tr>
															<td width="12">
																&nbsp;
															</td>
															<td width="172" valign="top">

																<table width="215" height="61" border="0" align="center"
																	cellpadding="0" cellspacing="0">
																	<tr>
																		<td width="70%" height="30" class="c1">
																			<font color="#666">
																			<c:if test="${ session.user.userLevel == 1}">普通会员：</c:if>
																			<c:if test="${ session.user.userLevel == 2}">高级会员：</c:if>
																			<c:if test="${ session.user.userLevel == 3}">VIP会员：</c:if>
																			${ session.user.username}
																			</font>
																		</td>
																		<td width="70%" height="30" class="c1">
																			<a href="logout.action">退出登陆</a>
																		</td>
																	</tr>
																	<tr>
																		<td width="30%" height="30" class="c1"><a href="showOrder.action">未处理订单</a></td>
																		<td width="30%" height="30" class="c1">
																			<a href="displayProduct.action">购物车</a>
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</c:otherwise>
									</c:choose>
									<tr>
										<td height="45" valign="middle">
											<img name="index_r5_c2" src="image/page/fenlei.jpg"
												width="245" height="30" border="0" id="index_r5_c2" alt="" />
										</td>
									</tr>
									<tr>
										<td height="80" valign="top">
											<table width="100%" border="0" cellpadding="0"
												cellspacing="0">
												<!--DWLayoutTable-->
												<tr>
													<td valign="top" background="left93.jpg">
														<c:forEach items="${ session.categorys }" var="category">
															<table width="220" border="0" cellpadding="0"
																cellspacing="0">
																<tr>
																	<td height="19">
																		<div align="center">
																			<table width="186" height="19" border="0"
																				cellpadding="0" cellspacing="0">
																				<tr>
																					<td width="11">
																						&nbsp;
																					</td>
																					<td width="15">
																						<img src="image/page/left95.jpg" width="8"
																							height="7" />
																					</td>
																					<td width="160" class="c2">
																						<a
																							href="categoryproducts.action?cid=${ category.CId }">
																							<font color="#01539D">${ category.CName }</font>
																						</a>
																						<div class="detail">
																						</div>
																					</td>
																				</tr>
																			</table>
																		</div>
																	</td>
																</tr>
																<tr>
																	<td height="7">
																		<img src="image/page/left94.jpg" width="245"
																			height="9" />
																	</td>
																</tr>
																<tr>
																	<td class="menufont">
																		<table width="186" height="26" border="0"
																			cellpadding="0" cellspacing="0">

																		</table>
																	</td>
																</tr>
															</table>
														</c:forEach>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td valign="bottom">
								<div align="right">
									<form action="searchproducts.action" method="post" name="form1"
										id="form1">
										<table width="231" height="90" border="0" align="center"
											cellpadding="0" cellspacing="0">

											<tr>
												<td>
													<img src="image/page/index_r8_c8.jpg" width="231"
														height="30" />
												</td>
											</tr>
											<tr>
												<td>
													关键字:
													<input name="keyWord" type="text" id="ProductCode"
														size="18" />
													<input type="image"
														src="image/page/left91.jpg" width="33" height="21" />
												</td>
											</tr>

										</table>
									</form>
								</div>
							</td>
						</tr>
						<tr>
							<td>
								<a href="showMessage.action"><img name="index_r13_c2"
									src="image/page/index_r13_c2.jpg" width="245" height="66"
									border="0" id="index_r13_c2" alt="" /> </a>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
